import request from '@/utils/request'

// 查询商会活动列表
export function listActivitynews(query) {
  return request({
    url: '/yw/activitynews/list',
    method: 'get',
    params: query
  })
}

// 查询商会活动详细
export function getActivitynews(id) {
  return request({
    url: '/yw/activitynews/' + id,
    method: 'get'
  })
}

// 新增商会活动
export function addActivitynews(data) {
  return request({
    url: '/yw/activitynews',
    method: 'post',
    data: data
  })
}

// 修改商会活动
export function updateActivitynews(data) {
  return request({
    url: '/yw/activitynews',
    method: 'put',
    data: data
  })
}

// 删除商会活动
export function delActivitynews(id) {
  return request({
    url: '/yw/activitynews/' + id,
    method: 'delete'
  })
}
